package data.nanjing.expo.models.domain.base;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

/**
 * 工单管理
 * @author ChanJi
 * @create 2018-04-11 18:26
 * work_order
 **/
public class WorkOrder {

    /**
     * 工单id
     */
    private Integer id;
    /**
     * 用户id
     * user_id
     */
    private Integer userId;
    /**
     * 用户姓名
     * name
     */
    private String name;

    /**
     * 用户手机号
     * phone
     */
    private String phone;
    /**
     *工单标题title
     *
     */
    private String title;
    /**
     * 工单内容
     * content
     */
    private String content;
    /**
     * 工单状态
     * state
     */
    private Integer state;
    /**
     * 工单类型
     * type
     */
    private String type;
    /**
     * 处理人员
     * process_man
     */
    private String processMan;

    /**
     * 回复内容
     * treat_content
     */
    private String treatContent;
    /**
     * 创建时间
     * gmt_create
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;
    /**
     * 上次更新时间
     * gmt_modified
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date  gmtModified;

    public WorkOrder() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTreatContent() {
        return treatContent;
    }

    public void setTreatContent(String treatContent) {
        this.treatContent = treatContent;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getProcessMan() {
        return processMan;
    }

    public void setProcessMan(String processMan) {
        this.processMan = processMan;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "WorkOrder{" +
                "id=" + id +
                ", userId=" + userId +
                ", name='" + name + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", state=" + state +
                ", type='" + type + '\'' +
                ", processMan='" + processMan + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                '}';
    }
}
